package edu.its.dreamteam.web.components;

import org.apache.tapestry.annotations.InjectPage;
import org.apache.tapestry.ioc.annotations.Inject;
import org.apache.tapestry.services.RequestGlobals;
import org.apache.tapestry.services.Session;

import edu.its.dreamteam.web.base.SecureBasePage;
import edu.its.dreamteam.web.pages.Start;

public class WelcomeBorder extends SecureBasePage{	
	@InjectPage
	private Start start;
	
	@Inject
	private RequestGlobals requestGlobals;
	
	Object onActionFromLogout() {
		
		Session session = requestGlobals.getRequest().getSession(false);
		if (null != session) {
			session.invalidate();
		}
		return start;
	}

}
